package com.software.project.repository;

import com.software.project.entity.StudyTimeRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.List;
import java.util.Optional;

@Repository
public interface StudyTimeRecordRepository extends JpaRepository<StudyTimeRecord, String>, JpaSpecificationExecutor {
    List<StudyTimeRecord> findByUserIdAndStudyDateBetween(String userName, Date begin, Date end);
}
